package com.apes.auto.maintain.model;

import com.apes.framework.jpa.ApesBean;
import com.apes.framework.jpa.DefaultPersistListener;
import com.apes.framework.jpa.comment.Comment;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.SelectBeforeUpdate;

import javax.persistence.*;

/**
 * @ClassName LevelMaintain
 * @Description 力洋采集保养数据
 * @Author pengyb
 * @Date 2019/8/8 17:06
 * @Version 1.0
 **/
@Getter
@Setter
@SelectBeforeUpdate
@DynamicInsert
@DynamicUpdate
@Entity
@EntityListeners(DefaultPersistListener.class)
@Table(name = LevelMaintain.CONST_TABLE_NAME)
public class LevelMaintain implements ApesBean {
    public static final String CONST_TABLE_NAME = "vin114_by";

    @Id
    @Column(name = "levelID", length = 32)
    @Comment("levelID")
    private String levelID;

    @Column(name = "BYXMDM", length = 32)
    @Comment("保养项目代码")
    private String BYXMDM;

    @Column(name = "bydz", length = 32)
    @Comment("bydz")
    private String bydz;

    @Column(name = "GLZT", length = 32)
    @Comment("5000000公里状态")
    private String GLZT;


    @Column(name = "BYLX", length = 32)
    @Comment("保养类型")
    private String BYLX;

    @Column(name = "BYJG", length = 32)
    @Comment("保养间隔")
    private String BYJG;


}
